# 倒三角
for i in range(1, 6):   # i表示的是行号，第i行
    for j in range(1, 7-i):
        print("*", end="")
    print()     # 换行

print("---------------------------------------")


# 等腰三角形
for i in range(1, 6):   # 外层循环5行
    for j in range(1, 6-i):
        # print("&", end="")
        print(" ", end="")
    for k in range(1, i * 2):
        print("*", end="")
    print()




